package com.xyy.saas.payment.cores.vo;

import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;

@Getter
@Setter
public class RegionVo implements Serializable {
    private static final long serialVersionUID = 5834912424060852529L;
    private Integer areaCode;
    private Integer parentCode;
    private String areaName;
    private Byte level;

    /**
     * 构建对象
     */
    public static RegionVo build(Integer areaCode, Integer parentCode, String areaName, Byte level) {
        RegionVo regionVo = new RegionVo();
        regionVo.setAreaCode(areaCode);
        regionVo.setParentCode(parentCode);
        regionVo.setAreaName(areaName);
        regionVo.setLevel(level);
        return regionVo;
    }
}
